using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Web;

namespace AliCMS
{
    public interface IObject : IDisposable
    {
        object ExecuteService(HttpContext context);
        void AliUpload(string fieldName, ref string uploadFile, bool isLast);
        IManager Manager { get; set; }
    }
    public interface IDbObject : IObject
    {
        int GetInnerIDFromGuid(Guid guid);
        Guid GetGuidFromInnerID(object id);
        Dictionary<string, object> Get(object id);
        Guid Add(Dictionary<string, object> item);
        void Modify(int id, Dictionary<string, object> changes);
        void Delete(int id);
        DataTable List(int page, int pageSize, string condition, string sort);
        int GetRecordCount(string condition);
    }
}
